package com.haikesi.api.menuauthority.domain.vo;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;

@Data
@EqualsAndHashCode(callSuper = false)
public class MenuAuthorityResourceVO implements Serializable {
    private static final long serialVersionUID = -1L;

    @ApiModelProperty(value = "菜单ID")
    @NotNull(message="菜单ID不能为空！")
    private String menuAuthorityId;

    @ApiModelProperty(value = "权限（菜单）ID集合")
    @NotNull(message="权限（菜单）集合不能为空！")
    private List<String> resourceIds;

    @ApiModelProperty(value = "权限（菜单）原来ID集合")
    private List<String> oldResourceIds;

}